﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:local="clr-namespace:Microsoft.ProductivityHub.SilverlightProductCarousel"
	x:Class="Microsoft.ProductivityHub.SilverlightProductCarousel.VideoCarousel"
	d:DesignWidth="638" d:DesignHeight="230">
	<UserControl.Resources>
		<Storyboard x:Name="ShowTitle_SB">
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="TitleArea" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00">
					<DiscreteObjectKeyFrame.Value>
						<Visibility>Visible</Visibility>
					</DiscreteObjectKeyFrame.Value>
				</DiscreteObjectKeyFrame>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TitleArea" Storyboard.TargetProperty="(UIElement.Opacity)">
				<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Name="HideTitle_SB">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TitleArea" Storyboard.TargetProperty="(UIElement.Opacity)">
				<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TitleArea" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00.3000000">
					<DiscreteObjectKeyFrame.Value>
						<Visibility>Collapsed</Visibility>
					</DiscreteObjectKeyFrame.Value>
				</DiscreteObjectKeyFrame>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="0.81*"/>
			<RowDefinition Height="46"/>
		</Grid.RowDefinitions>
		<Grid.Background>
			<SolidColorBrush Color="{StaticResource White}"/>
		</Grid.Background>
		<Canvas x:Name="CarouselCanvas" Width="640">
			<Canvas.Background>
				<SolidColorBrush Color="{StaticResource White}"/>
			</Canvas.Background>
		</Canvas>
		<Grid x:Name="TitleArea" Height="20" VerticalAlignment="Bottom" HorizontalAlignment="Center" Opacity="1" Visibility="Visible" Background="#DDFFFFFF">
               <TextBlock x:Name="VideoTitle" FontFamily="Verdana" FontSize="14" Foreground="Black" Text="" TextWrapping="Wrap" Width="638"  HorizontalAlignment="Center" TextAlignment="Center" Cursor="Hand" MouseLeftButtonDown="VideoTitle_MouseLeftButtonDown"/>
		</Grid>
		<Grid x:Name="Controls" Grid.Row="1">
			<Rectangle x:Name="ControlGradient" Fill="White">
			</Rectangle>
			<Slider x:Name="MySlider" Margin="59,0" Style="{StaticResource CannesSlider}" SmallChange="1" Maximum="9" ValueChanged="SliderValueChangedEvent" Cursor="Hand"/>
			<RepeatButton x:Name="ScrollLeft" HorizontalAlignment="Left" VerticalAlignment="Center" Content="RepeatButton" Width="18" Height="18" Margin="32,0,0,0" Style="{StaticResource Cannes_ScrollLeft}" Click="ClickEvent" Cursor="Hand"/>
			<RepeatButton x:Name="ScrollRight" HorizontalAlignment="Right" VerticalAlignment="Center" Content="RepeatButton" Width="18" Height="18" Margin="0,0,32,0" Style="{StaticResource Cannes_ScrollRight}" Click="ClickEvent" Cursor="Hand"/>
		</Grid>
	</Grid>
</UserControl>